<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<link rel="shortcut icon" href="<?php echo Yii::app()->request->baseUrl; ?>/images/favicon.ico"/>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="language" content="en" />
<?php if(isset(Yii::app()->params['PageShortcut'])):
        foreach(Yii::app()->params['PageShortcut']['metaLink'] as $MetaName=>$MetaContent): ?>
<meta name="<?php echo $MetaName; ?>" content="<?php echo $MetaContent; ?>"/>
<?php endforeach; endif;?>
<!-- blueprint CSS framework -->
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/screen.css" media="screen, projection" />
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/print.css" media="print" />
	<!--[if lt IE 8]>
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/ie.css" media="screen, projection" />
	<![endif]-->
<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/main.css" />
<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/form.css" />
<?php $this->widget('application.widgets.jui.initial');?>


<title><?php echo $this->pageTitle; ?></title>
</head>

<body>
    
<div class="container" id="page">

<div id="header">
<div id="logo"><?php echo CHtml::encode(Yii::app()->name); ?></div></div><!-- header -->
<div id="mainmenu">
<?php $this->widget('zii.widgets.CMenu',array(
	'items'=>array(
		array('label'=>'Customer', 'url'=>array('/contact')),
		array('label'=>'Invoice', 'url'=>array('/cargo/index')),
                array('label'=>'Subcert', 'url'=>array('/subcert/index')),
                array('label'=>'MES Permit', 'url'=>array('/permit/index')),
                array('label'=>'Report', 'url'=>array('/report/index')),
		array('label'=>'Login', 'url'=>array('/site/login'), 'visible'=>Yii::app()->user->isGuest),
		array('label'=>'Logout', 'url'=>array('/site/logout'), 'visible'=>!Yii::app()->user->isGuest)
	),
)); ?>
</div><!-- mainmenu -->

<?php $this->widget('zii.widgets.CBreadcrumbs', array(
		'links'=>$this->breadcrumbs,
	)); ?><!-- breadcrumbs -->

<div id="content">
<?php echo $content; ?>
</div><!-- content -->

<div id="footer">
Copyright &copy; 2009 by My Company.<br/>
All Rights Reserved.<br/>
<?php echo Yii::powered(); ?>
</div><!-- footer -->
<div style="display:none;" id="loading">Processing....</div>
  <div style="display:none;" id="loadingScreen"></div>
<div id="Ajax_Error" title="Process Error" style="display:none;">
	<p><span class="ui-icon ui-icon-alert" style="float:left; margin:0 7px 20px 0;"></span>There is a error occur</p>
</div>
</div><!-- page -->
<script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/javascript/main.js"></script>
<script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/javascript/ajaxloading.js"></script>
</body>

</html>